package com.webdesign.dto;

/*
 * 根据标题统计页面要返回的信息，包括用户id，用户名，状态，分数
 */
public class TitleSubmitInfoDTO {
	private String userid;
	
	private String username;
	
	private String state;
	
	private int score;

	public String getUserid() {
		return userid;
	}

	public void setUserid(String userid) {
		this.userid = userid;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getState() {
		return state;
	}

	public void setState(Byte state) {
		if(state == 1){
			this.state = "按时上交";
		}else if(state == 2){
			this.state = "超时完成";
		}else if(state == 0){
			this.state = "未完成";
		}
	}

	public int getScore() {
		return score;
	}

	public void setScore(int score) {
		this.score = score;
	}
	
	
}
